﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QuanLyDoiXe
{
    public partial class frmlogin : Form
    {
        public frmlogin()
        {
            InitializeComponent();
        }

        private void frmlogin_Load(object sender, EventArgs e)
        {
#if DEBUG
            txtUsername.Text = "quanlydoixe";
            txtPassword.Text = "123456";
#endif
        }
        private void btnOK_Click(object sender, EventArgs e)
        {
            if (txtUsername.Text == "quanlydoixe" && txtPassword.Text == "123456")
            {
                this.Close();
            }
            else
            {
                MessageBox.Show("Vui lòng nhập lại Username va Password");
                txtUsername.Focus();
            }
        }

        private void btnclose_Click(object sender, EventArgs e)
        {
            Application.ExitThread();
        }
    }
}
